<template>
  <div id="top">
    <div class="toubu">
      <router-link to="/"><a>&nbsp;&nbsp;举报详情</a></router-link>
      <a>（选填项）</a>
    </div>
    <div class="dibu" v-for="item in Jubaoye" :key="item.id">
      <div class="zhapianleixin">
        <div class="left">
          <b>{{ item.name }}</b>
        </div>
        <div class="left">{{ item.path }}&nbsp;&nbsp;{{ item.name2 }}</div>
      </div>
      <!-- <div class="zhapianleixin">
        <div class="left"><b>&nbsp;&nbsp;举报他</b></div>
        <div class="left">请选择&nbsp;&nbsp;&gt;</div>
      </div>
      <div class="zhapianleixin">
        <div class="left"><b>&nbsp;&nbsp;举报描述</b></div>
        <div class="left">请选择&nbsp;&nbsp;&gt;</div>
      </div> -->
    </div>
  </div>
</template>

<script>
import axios from "axios";
export default {
  data() {
    return {
      Jubaoye: [],
    };
  },
  created() {
    this.getJubaoye();
  },
  methods: {
    getJubaoye() {
      axios({
        url: "http://localhost:3000/Jubaoye",
      }).then((res) => {
        // 把后端的数据赋给了Laidian
        // console.log(res.data);
        this.Jubaoye = res.data;
        console.log(this.Jubaoye, "Jubaoye");
      });
    },
  },
};
</script>

<style>
#top {
  height: 12.5rem;
  display: flex;
  flex-direction: column;
}

#top .toubu {
  height: 9rem;
  background-color: rgb(228, 224, 224);
  display: flex;
  align-items: center;
}
#top .toubu a {
  text-decoration: none;
  color: #000;
}
#top .toubu a:nth-child(2) {
  color: rgb(119, 114, 114);
}
#top .dibu {
  height: 9.5rem;
  display: flex;
  flex-direction: column;
}
#top .dibu .zhapianleixin {
  height: 3.1rem;
  border-bottom: 1px solid rgb(179, 174, 174);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#top .dibu .zhapianleixin .left {
  width: 20%;
  height: 3.1rem;
  display: flex;
}
#top .dibu .zhapianleixin .left:nth-child(2) {
  color: rgb(119, 114, 114);
}
</style>
